package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_mainpost_files;
import com.balakitbbs.dao.Bala_mainpost_filesDaoIF;
   /**
    * bala_mainpost_files Service类
    */ 
@Service
public class Bala_mainpost_filesService{
@Autowired
private Bala_mainpost_filesDaoIF dao;
	public void addBala_mainpost_files(Bala_mainpost_files bala_mainpost_files){
		dao.addBala_mainpost_files(bala_mainpost_files);
	}

	public void delBala_mainpost_files(String id){
		dao.delBala_mainpost_files(id);
	}

	public void delBala_mainpost_filesTrue(String id){
		dao.delBala_mainpost_filesTrue(id);
	}

	public void updateBala_mainpost_files(Bala_mainpost_files bala_mainpost_files){
		dao.updateBala_mainpost_files(bala_mainpost_files);
	}

	public Bala_mainpost_files selectBala_mainpost_filesById(String id){
		return dao.selectBala_mainpost_filesByID(id);
	}

	public int selectBala_mainpost_filesCount(){
		return dao.selectBala_mainpost_filesCount();
	}

	public int selectBala_mainpost_filesCountAll(){
		return dao.selectBala_mainpost_filesCountAll();
	}

	public List<Bala_mainpost_files> selectBala_mainpost_filessByPage(SearchPageUtil spu){
		return dao.selectBala_mainpost_filessByPage(spu);
	}

	public int selectBala_mainpost_filessByPOJOCount(Bala_mainpost_files bala_mainpost_files){
		return dao.selectBala_mainpost_filessByPOJOCount(bala_mainpost_files);
	}

	public List<Bala_mainpost_files> selectBala_mainpost_filessByPOJO(Bala_mainpost_files bala_mainpost_files){
		return dao.selectBala_mainpost_filessByPOJO(bala_mainpost_files);
	}

	public List<Bala_mainpost_files> selectBala_mainpost_filessByPojoPage(SearchPageUtil spu,Bala_mainpost_files bala_mainpost_files){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_mainpost_files);
		return dao.selectBala_mainpost_filessByPojoPage(map);
	}

}

